﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using SGRapidForm.Common;

namespace SGRapidForm.Permission.Entity
{
    [DataContract]
    public class PermissionDetails : EntityBase
    {
        private string _keyid = string.Empty;
        private bool _isSelected = false;
        private string _code = string.Empty;
        private string _name = string.Empty;
        private string _parentName = string.Empty;
        private string _parentCode = string.Empty;


        [DataMember]
        public string Keyid
        {
            set { _keyid = value; }
            get { return _keyid; }
        }

        [DataMember]
        public bool IsSelected
        {
            set { _isSelected = value; }
            get { return _isSelected; }
        }

        [DataMember]
        public string Code
        {
            set { _code = value; }
            get { return _code; }
        }

        [DataMember]
        public string Name
        {
            set { _name = value; }
            get { return _name; }
        }

        [DataMember]
        public string ParentName
        {
            set { _parentName = value; }
            get { return _parentName; }
        }

        [DataMember]
        public string ParentCode
        {
            set { _parentCode = value; }
            get { return _parentCode; }
        }

    }
}